import 'package:appflutterhomeschool/res/styles.dart';
import 'package:appflutterhomeschool/ui/widgets/my_app_bar.dart';
import 'package:appflutterhomeschool/ui/widgets/notice/form_widget.dart';
import 'package:appflutterhomeschool/ui/widgets/widgets.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

///用户： ninetailedfox
///时间： 2020/7/27
///邮箱： 1037438704@qq.com
///功能： 表单数据
class FormDataPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      resizeToAvoidBottomInset: false,
      backgroundColor: Colors.white,
      appBar: MyAppBar2(title: "表单详情"),
      body: SingleChildScrollView(
        child: Column(
          children: [
            TitleMenuWidget(titleContext: "1,你的性别"),
            SingleChoiceWidget(),
            TitleMenuWidget(titleContext: "2,你的年级"),
            MultipleChoiceWidget(),
            Container(
              padding: EdgeInsets.only(
                  left: ScreenUtil().setWidth(43),
                  right: ScreenUtil().setWidth(43),
                  top: ScreenUtil().setWidth(43)),
              alignment: Alignment.centerLeft,
              child: Text("你每个月的花销大约", style: TextStyles.textDark43),
            ),
            ReplyInputBox(),
            TitleMenuWidget(titleContext: "4,对APP打分"),
            Container(
              padding: EdgeInsets.only(left: ScreenUtil().setWidth(43)),
              alignment: Alignment.topLeft,
              height: 45,
              child: ListView.builder(
                  scrollDirection: Axis.horizontal,
                  physics: NeverScrollableScrollPhysics(),
                  shrinkWrap: true,
                  itemCount: 5,
                  itemBuilder: (context, index) {
                    return Icon(Icons.star, color: Colors.orangeAccent);
                  }),
            )
          ],
        ),
      ),
    );
  }

//  Widget _rowWidget(String content) {
//    return Container(
//      padding: EdgeInsets.all(ScreenUtil().setWidth(43)),
//      child: Row(
//        children: [
//          Icon(Icons.add, color: Colors.blue),
//          Text(
//            content ?? "添加选项",
//            style: TextStyles.textBlue36,
//          ),
//        ],
//      ),
//    );
//  }
}
